package org.jeecg.modules.xl.customerType.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


@Data
@ApiModel("基础树状型数据")
@NoArgsConstructor
@AllArgsConstructor
public class CustomerTreeVO {

    private String id;
    private String key;
    private String title;
    private String value;
    /**
     * 父Id
     */
    private String parentId;
    /**
     * 是否是叶节点
     */
    private boolean isLeaf;

    /**排序*/
    @ApiModelProperty(value = "排序")
    private Integer sort;

    /**
     * 子节点
     */
    private List<CustomerTreeVO> children;


    public void setId(String id) {
        this.id = id;
        this.key = id;
        this.value = id;
    }
}
